import requestUrl from '@/assets/request/api.js'
export default {
	state: {
		category: []
	},
	mutations: {
		setCategory(state, data) {
			state.category = data
		}
	},
	actions: {
		getCategory(context) {
			requestUrl.requestCate().then(res=> {
				context.commit('setCategory', res.data)
			})
		}
	}
}